package com.qf.voteconsumer.vote.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.qf.voteconsumer.vote.entity.Vote;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author dong_
 * @since 2023-06-28
 */
public interface IVoteService extends IService<Vote> {

    /**
     * 处理消息队列中的 投票流水信息
     * @param json
     * {"votetime":"2023-06-28T03:13:01.366+0000","candidateName":"nami","phone":"13866668888"}
     */
    void processMsg(String json) throws Exception;
}
